package com.easonji.common.constant.dictmap;

import com.easonji.common.constant.dictmap.base.AbstractDictMap;

/**
 * @ClassName: RoleDict
 * @Description: 角色的字典（记录日志AOP用）
 * @Author: LiuJun
 * @date: 2018/07/12 14:38
 * @Version: 1.0
 * @Copyright: Copyright (c) 2018 - 2019
 */
public class RoleDict extends AbstractDictMap {

    @Override
    public void init() {
        put("roleId", "角色名称");
        put("appId", "应用名称");
        put("name", "角色名称");
        put("num", "角色排序");
        put("permissionIds", "权限名称");
    }

    @Override
    protected void initBeWrapped() {
        putFieldWrapperMethodName("roleId", "RoleManager.getRoleNameById");
        putFieldWrapperMethodName("appId", "AppManager.getAppNameById");
        putFieldWrapperMethodName("permissionIds", "PermissionManager.getPermissionNameByIds");
    }
}
